package requests

import "app/common/params"

type GoodsEditRequest struct {
	Platform            int8   `json:"platform" validate:"required"`                            //所属平台1淘宝
	IndexImage          string `json:"indeximage" validate:"required"`                          //主图
	Image               string `json:"image" `                                                  //附图
	ShopName            string `json:"shopName" validate:"required"`                            //店铺名称
	Title               string `json:"title" validate:"required"`                               //商品标题
	Cid                 int    `json:"cid" validate:"required"`                                 //分类id
	Price               string `json:"price" validate:"required"`                               //价格
	Address             string `json:"address" validate:"required"`                             //发货地
	IsCheck             int8   `json:"isCheck" `                                                //是否需要验号
	Sex                 int8   `json:"sex"`                                                     //性别1男2女
	IsFakeChat          int8   `gorm:"column:is_fake_chat" json:"isFakeChat"`                   //是否需要假聊 0否 1是
	IsCollect           int8   `gorm:"column:is_collect" json:"isCollect"`                      //是否收藏 0否 1是
	IsCart              int8   `gorm:"column:is_cart" json:"isCart"`                            //是否加购物车: 0否 1是
	BackfillOrderNumber int8   `gorm:"column:backfill_order_number" json:"backfillOrderNumber"` //是否填写订单编号: 0否 1是
	AddressDemand       string `json:"addressDemand"`                                           //地区需求
}

type GoodsDeleteRequest struct {
	Id int `json:"id" validate:"required"`
}

type GoodsDetailRequest struct {
	Id int `json:"id" validate:"required"`
}

type GoodsListRequest struct {
	params.ParamsPagination
	SupplierId int `json:"supplierId" form:"supplierId"`
}

type NullRequest struct{}

type ShopInfoByGoodsId struct {
	Pid string `json:"pid" form:"pid" validate:"required" label:"宝贝ID"`
}
